package com.yiboshi.rehrs.feign;

import com.alibaba.fastjson.JSONObject;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author jack 2025/3/23
 */
@FeignClient(value = "posterFeign", url = "${poster.host}" ,configuration = {FeignResultDecoder.class, PosterFeignInterceptor.class})
public interface PosterFeign {

    @PostMapping("/pdalogin/p/common/noTokenAccessSendAuthCodeByUsr")
    JSONObject sendauthCodeByUsr(JSONObject json);

    @PostMapping("/pdalogin/p/common/loginbyusrsms")
    JSONObject smsLogon(JSONObject end);

    @PostMapping("/pdalogin/p/common/loginbyusrface")
    JSONObject loginByFace(JSONObject end);

    @PostMapping("/delivery-app/p/delivery/pdataskquery/findpdasignwaybillinfonew.do")
    JSONObject findpdasignwaybillinfonew(JSONObject end);

    @PostMapping("/delivery-app/p/delivery/cloudcall/updatephone")
    JSONObject updatephone(JSONObject jsonObject);

    @PostMapping("/delivery-app/p/delivery/cloudcall/querywaybill")
    JSONObject querywaybill(JSONObject jsonObject);

    @PostMapping("/delivery-app/p/delivery/cloudcall/newCallAndFile")
    @Headers("Content-Type: application/x-www-form-urlencoded; charset=utf-8")
    JSONObject newCallAndFile(String jsonObject);

    //@PostMapping("/delivery-app/p/delivery/pdataskquery/findpdasignwaybillinfonew.do")
    //JSONObject findpdasignwaybillinfonew(JSONObject end);
}
